/**$Licence:
 *   Use this however/wherever you like, just don't blame me if it breaks anything.
 *   Copyright (C) 2008 - 2013 xingsheng.zhu@gmail.com All rights reserved.
 */
package com.blazegame.logging.async;

import com.blazegame.logging.Logger;
import com.blazegame.logging.LoggerFactory;
import com.blazegame.logging.log4j.Log4jLogger;

/**
 * @author JackChu
 * @version 1.0.0 2013-2-22 下午6:05:55
 */
public class AsyncLoggerFactory extends LoggerFactory{

	@Override
	protected Logger getLoggerImpl(Class<?> cls) {
		return new AsyncLogger(new Log4jLogger(org.apache.log4j.Logger.getLogger(cls)));
	}

	@Override
	protected Logger getLoggerImpl(String name) {
		return new AsyncLogger(new Log4jLogger(org.apache.log4j.Logger.getLogger(name)));
	}

}
